package com.ag.oa.core.entity.dto;

import java.io.Serializable;

/**
 * Author:   wjc
 * Date:     2022/5/6
 * Description: 用户积分收支明细
 */
public class UserScoreDTO implements Serializable {

    private static final long serialVersionUID = -7425760515663721004L;

    private Long id; // 自增id
    private Integer userId; // 用户id
    private Integer sourceType; // 来源类型（0：后台管理员直接维护 1：完成任务 2：每日打卡 3：分享文件 4：下载资源 5：举报奖励 ...）
    private String paymentType; //	收支类型（in：收入 out：支出）
    private Integer transactionScore; // 交易积分（收入用正数，支出用负数）
    private Integer beforeScore; // 原有的积分
    private Integer afterScore; // 交易后的积分
    private Integer createdBy; // 操作人员id
    private String created; // 操作时间（yyyy-MM-dd HH:mm:ss）
    private String createdDate; // 操作日期（yyyy-MM-dd）
    private String additionalJson; // 附加信息json字符串（尽量简短，按照来源类型区分，相同来源类型保持相同格式，方便后续使用）
    private String description; // 备用描述

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public Integer getTransactionScore() {
        return transactionScore;
    }

    public void setTransactionScore(Integer transactionScore) {
        this.transactionScore = transactionScore;
    }

    public Integer getBeforeScore() {
        return beforeScore;
    }

    public void setBeforeScore(Integer beforeScore) {
        this.beforeScore = beforeScore;
    }

    public Integer getAfterScore() {
        return afterScore;
    }

    public void setAfterScore(Integer afterScore) {
        this.afterScore = afterScore;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(String createdDate) {
        this.createdDate = createdDate;
    }

    public String getAdditionalJson() {
        return additionalJson;
    }

    public void setAdditionalJson(String additionalJson) {
        this.additionalJson = additionalJson;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
